define(function(require,exports,module){
	var aw = require("ajaxwrapper");
	var moment = require("moment");
	
	module.exports = {
		queryRoomTypePrice: function(cParams,sCb){
			//由于In不好用，只能这样。
			if(cParams["orgBuilding.pkOrgBuildingIn"] == ""){
				delete cParams["orgBuilding.pkOrgBuildingIn"];
				//cParams["orgBuilding.pkOrgBuildingIn"] = null;
			}
			if(cParams.saleDateEnd - cParams.saleDate <= 86400000){
				cParams.saleDateEnd = cParams.saleDate
        	}else{
        		cParams.saleDateEnd = cParams.saleDateEnd-86400000
        	}
			
            aw.ajax({
                url: "api/roomtypeprice/query",
                data: cParams,
                success: sCb
            });
        }
	};
});